/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hecatone;

/**
 *
 * @author fredericpaquette
 */
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.util.Hashtable;
import java.util.Enumeration;

public class Character {
    
    private static final Logger logger = Logger.getLogger(Character.class);
   
    public String NAME;
    public int PERSO_ID;
    public int currenHex;
    public int commanderLevel;
    public int emissaryLevel;
    public int agentLevel;
    public int NATION_ID;
    public int TURN;
    public int HEALTH;
    public int challenge;
    public String status;
    private int ARMY_ID;
    
    private int currentHex;
    
   
    
    public Character(int ID, String NAME){
        
        this.PERSO_ID = ID;
        this.NAME = NAME;
        
        
        
        PropertyConfigurator.configure("log4j.properties");
        logger.debug("Character created "+ this.NAME);
    }
    
    public void setArmyID (int id)
    {
        logger.info("setting army for character "+ NAME);
        if ((commanderLevel <= 0))
        {
            logger.info("This characted cannot command an army, it is either dead or not a commander");
        }
        else
        {
            ARMY_ID = id;
        }
    }
    public int getArmyID()
    {
        return ARMY_ID;
    }
}
